box: Make sure center_req is initialized
authorTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 13:16:56 +0000 (14:16 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 13:16:56 +0000 (14:16 +0100)
In case we have an invisible center widget, we never initialize it, but
later still use it.

gtk/gtkbox.c

index 7e31c0b9d939ed9bc5b8f1e732218a86b3c01345..71bac69591b2b74a7f4f067fdee693f90cf68aaa 100644 (file)
@@ -802,7 +802,7 @@ gtk_box_size_allocate_with_center (GtkWidget           *widget,
   GtkTextDirection direction;
   GtkAllocation child_allocation;
   GtkRequestedSize *sizes[2];
-  GtkRequestedSize center_req;
+  GtkRequestedSize center_req = {0, 0};
   gint child_minimum_baseline, child_natural_baseline;
   gint minimum_above, natural_above;
   gint minimum_below, natural_below;